// MenuBuilder.java
package sonet.textui.agent;
import ist.po.ui.Command;
import ist.po.ui.Menu;
import sonet.textui.*;

public class MenuBuilder {
	public static void menuFor(BrowsingState state) {
		Menu menu = new Menu(Message.menuTitle(state.visiting.getIdentifier()), new Command<?>[] {
				new ShowProperties(state),
				new EditProfile(state),
				new ProtectProfile(state),
				new UnprotectProfile(state),
				new OpenMenuPublications(state),
				new OpenMenuMessages(state),
				new OpenMenuConnections(state),
				});
		menu.open();
	}	
}
